/// <reference path="_all.ts" />

var application = angular.module("webconsole", ['ngCookies', 'ngResource', 'ngRoute']);

application.filter('i18n', Application.Filters.Translation);
application.service('TranslationService', Application.Services.TranslationService);

application.service('ActionService', Application.Services.ActionService);
application.controller('ActionsController', Application.Controllers.ActionsController);

application.service('ConfigService', Application.Services.ConfigService);
application.service('ServerService', Application.Services.ServerService);
application.controller('ServerController', Application.Controllers.ServerController);
application.controller('ServersController', Application.Controllers.ServersController);

application.service('MemberService', Application.Services.MemberService);
application.controller('MembersController', Application.Controllers.MembersController);

application.service('PlayerService', Application.Services.PlayerService);
application.controller('PlayersController', Application.Controllers.PlayersController);

application.service('UserService', Application.Services.UserService);
application.controller('LoginController', Application.Controllers.LoginController);
application.controller('UserController', Application.Controllers.UserController);
application.controller('UsersController', Application.Controllers.UsersController);

application
    .config(Application.Routing.Router)
    .run(Application.Routing.LocationChangeHandler);